﻿#include "frmnettool.h"
#include "ui_frmnettool.h"
#include "quiwidgetnet.h"

frmNetTool::frmNetTool(QWidget *parent) : QWidget(parent), ui(new Ui::frmMain)
{
    ui->setupUi(this);
    ui->tabWidget->setCurrentIndex(NetTool::App::CurrentIndex);
}

frmNetTool::~frmNetTool()
{
    delete ui;
}

void frmNetTool::currentChanged(int index)
{
    NetTool::App::CurrentIndex = index;
    NetTool::App::writeConfig();
}
